# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin

from .models import UserFavorite, UserConcern


@admin.register(UserFavorite)
class UserFavoriteAdmin(admin.ModelAdmin):
    list_display = ['user', 'menu', 'add_time']
    search_fields = ['user', 'menu', 'add_time']
    list_filter = ['user', 'menu', 'add_time']


@admin.register(UserConcern)
class UserConcernAdmin(admin.ModelAdmin):
    list_display = ['user_id', 'to_user', 'add_time']
    search_fields = ['user_id', 'to_user', 'add_time']
    list_filter = ['user_id', 'to_user', 'add_time']
